projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9d0cdc
)
Erase the buffer only after fetching the new contents
author
Dmitry Gutov
<dgutov@yandex.ru>
Sat, 23 Jan 2021 00:53:12 +0000
(
02:53
+0200)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Sat, 23 Jan 2021 00:53:12 +0000
(
02:53
+0200)
* lisp/progmodes/xref.el (xref-revert-buffer):
Erase the buffer only after fetching the new contents (bug#46042).
lisp/progmodes/xref.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/xref.el
b/lisp/progmodes/xref.el
index aecb30a0ad4c8f1d3610c883e0bd97ec35daa712..abaa0dc5e8bfa16f1c82080ad1c82b3c69fe43a5 100644
(file)
--- a/
lisp/progmodes/xref.el
+++ b/
lisp/progmodes/xref.el
@@
-967,10
+967,10
@@
Return an alist of the form ((FILENAME . (XREF ...)) ...)."
(let ((inhibit-read-only t)
(buffer-undo-list t))
(save-excursion
- (erase-buffer)
(condition-case err
- (xref--insert-xrefs
- (xref--analyze (funcall xref--fetcher)))
+ (let ((alist (xref--analyze (funcall xref--fetcher))))
+ (erase-buffer)
+ (xref--insert-xrefs alist))
(user-error
(insert
(propertize